home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
tex
/
tsfltc16.zip
/
TSFLTC.INF
< prev
next >
Wrap
Text File
|
1994-02-12
|
8KB
|
231 lines
- 1 -
Sat 12-February-1994
About TSFLTC in General All rights reserved
=======================
This package may be used and distributed freely for NON-COMMERCIAL,
NON-INSTITUTIONAL, PRIVATE purposes, provided it is not changed in
any way. (Repacking with another method is ok, though.) For ANY
other usage, such as use in a business enterprise or a university,
contact the author for registration. Uploading to bulletin boards is
encouraged. Please do not distribute any part of this package
separately.
The programs are under development. Comments and contacts are
solicited. If you have any questions, please do not hesitate to use
electronic mail for communication.
The author shall not be liable to the user for any direct, indirect
or consequential loss arising from the use of, or inability to use,
any program or file howsoever caused. No warranty is given that the
programs will work under all circumstances.
Timo Salmi (ts@uwasa.fi)
Professor of Accounting and Business Finance
Faculty of Accounting & Industrial Management
University of Vaasa
P.O. BOX 297, FIN-65101 Vaasa, Finland
Timo Salmi FiLTers set C, release 1.6 includes the following
* * * ** * * *
filter-programs:
TSFLTC16 More textfile-filters, T.Salmi
Filename Comment
-------- --------------------------------
COL.EXE Columnize a text file
CONCAT.EXE Join two text-files side by side
CUT.EXE Extract or delete text columns
CUTW.EXE Extract or delete text by words
DETAB.EXE Expand tabs properly into blanks
DUMP.EXE Decimal, hexadecimal, ascii dump
FILE_ID.DIZ Brief characterization of TSFLTC
REP.EXE Emphasize text file for printing
ROT13.EXE Rotate/unrotate text filter
TSFLTC.INF Document, a readme
TSFLTC.NWS News announcements about tsfltc
TSPROG.INF List of PD programs from T.Salmi
UNDUMP.EXE Convert decimals to ascii chars
VAASA.INF Info: Finland, Vaasa, U of Vaasa
---- ------ ------ -----
0014
- 2 -
COL.EXE (Ver 1.0) Columnize a text file
=================
Usage: COL < InputFileName > OutputFileName
COL is a simple filter that extracts strings from the input file and
outputs them as a single column.
Among other things COL can be used as a companion filter to UNDUMP
which converts a series of decimal numbers into corresponding ascii
characters. E.g. if you have the numbers in NUM.DAT with the
following contents:
84 105 109 111 32 83 97 108 109 105 13 10
85 110 105 118 101 114 115 105 116 121 32 111 102 32
86 97 97 115 97 13 10
then apply, for example TYPE NUM.DAT | COL | UNDUMP > NUM.BIN
CONCAT (Ver. 1.0) Join two text-files side by side
=================
Usage: CONCAT FirstFile SecondFile [/bxx (number of blanks)]
[/fxx (first pad margin)] [/sxx (second pad margin)]
or
CONCAT [/h(elp)]
CONCAT is a program for concatenating two text files, that is
joining them side by side. E.g. if you have texts OLD1.TXT and
OLD2.TXT, and want to join them with 3 blanks in between, apply:
CONCAT OLD1.TXT OLD2.TXT /b3 > NEW.TXT
You can pad with blanks the right margin of either of the text
files. For this apply the /f switch and/or the /s switch. e.g.
CONCAT OLD1.TXT OLD2.TXT /f40 > NEW.TXT
CUT (Ver. 1.1) Extract or delete text columns
==============
Usage:
CUT StartColumn1 EndColumn1 [StartColumn2 EndColumn2] ... [/h] [/s]
Help (alternatively CUT ?) ─┘ │
Suppress empty lines ─┘
CUT is a true filter for extracting (or stripping) columns from a
text file. E.g. if you have a text OLD.TXT, and want extract columns
7-20 from it, apply:
TYPE OLD.TXT | CUT 7 20 > NEW.TXT
If you want to omit columns 7-20, then apply:
TYPE OLD.TXT | CUT 1 6 21 255 > NEW.TXT
Alternatively, use faster CUT 1 6 21 255 < OLD.TXT > NEW.TXT
CUTW (Ver. 1.0) Extract or delete text by words
===============
CUTW StartWord1 EndWord1 [StartWord2 EndWord2] ... [/e] [/dxxx] [/h] [/s]
relative to the End of line ─┘ │ │ │
additional Delimiters ─┘ │ │
Help (alternatively CUTW ?)─┘ │
Suppress empty lines ─┘
CUTW is a true filter for extracting (or stripping) words from a
text file. E.g. if you have a text OLD.TXT, and want extract words
7-20 from it, apply:
TYPE OLD.TXT | CUTW 7 20 > NEW.TXT
If you want to omit words 7-20, then apply:
TYPE OLD.TXT | CUTW 1 6 21 255 > NEW.TXT
Alternatively, use faster CUTW 1 6 21 255 < OLD.TXT > NEW.TXT
All characters below ascii 33 are always considered word delimiters.
You can introduce additional delimiters by using the /d switch.
DETAB (Ver. 1.7) Expand tabs properly into blanks
================
Usage: DETAB SourceFile DestinationFile [tab spacing]
[/f(orce overwrites)] [/k(eep date)] [/m(ore)] [/n(o crt)] [/p(ause)]
Replaces tabs with a proper number of blanks. Applicable to text
files. The default tab spacing is 8.
The switches in the brackets [] are optional. If you are working
with a single disk drive, /p allows to change the disk by pausing
after you have loaded DETAB. If you direct output to the screen
(that is to CON) the /m option causes pause at the end of each
screen. The /n option causes the program bypass the faster internal
Crt routines. This option is included because these internal
routines cause problems on PCs with poor compatibility. All the
programs in this package are Turbo Pascal 5.0 programs, and Turbo
Pascal code is meant for true compatibles.
DUMP.EXE (Ver 1.0) Decimal, hexadecimal, ascii dump
==================
Usage: DUMP [/a] [/h] [/nxxx] [/o] < InputFileName > OutputFileName
│ │ │ └─ omit the Offset information
│ │ └─ Number of columns (default 8)
│ └─ output in Hexadecimal instead of decimal
└─ omit Ascii dump
E.g. if you have a binary file NUM.BIN the appply, for example
DUMP < NUM.BIN > NUM.DAT
REP (Ver. 1.0) Emphasize text file for printing
==============
Usage:
REP [NumberOfRepeats] [/m##] [/s##] [/e##] < InputFileName > OutputFileName
│ │ │ │ │
default 3 ─┘ │ │ │ │
left margin ─┘ │ │ │
starting preamble code ─┘ │ │
ending postamble code ─┘ │
normally use PRN ─┘
or TYPE InputFileName | REP [parameter] [switches] > OutputFileName
The purpose of this filter is to improve the quality of text sent to
the printer by repeating each line the desired number of times.
Examples:
REP < YourTextFile > PRN
REP 2 /m9 /s!$ /e@ < YourTextFile > PRN
The escapes are implicit in /s and /e, so e.g. /e@ sends <esc>@
which is the reset code for Epson compatible printers.
ROT13 (ver 1.0) Rotate/unrotate text filter
===============
ROT13 rotates ascii text by 13 positions. This is often used as an
elementary encryption technique for public but somehow sensitive
texts.
E.g. if you have a rotated text file ROTA.TXT, apply
TYPE ROTA.TXT | ROT13 > NORM.TXT
or
ROT13 < ROTA.TXT
or
ROT13 < ROTA.TXT > NORM.TXT
ROT13 works both ways. It rotates unrotated text and unrotates
rotated text.
UNDUMP.EXE (ver 1.0) Convert decimals to ascii chars
====================
Usage: UNDUMP [/h] < InputFileName > OutputFileName
└─ input in Hexadecimal instead of decimal
UNDUMP converts a series of decimal numbers into corresponding ascii
characters.
E.g. if you have the numbers in NUM.DAT with the following contents:
84
105
109
111
then apply, for example UNDUMP < NUM.DAT > NUM.BIN